package live

import (
	"github.com/gin-gonic/gin"
	"vrcm/src/vrcm/app/admin/apis/live"
	"vrcm/src/vrcm/app/admin/router"
)

func init() {
	router.NoCheckRole = append(router.NoCheckRole, registerLiveRecordRouter)
}

// registerLiveBasicRouter
func registerLiveRecordRouter(v1 *gin.RouterGroup) {
	api := apis.LiveRecord{}
	r := v1.Group("/live-record")
	{
		r.POST("/start-record", api.StartLiveRecord)
		r.POST("/stop-record", api.StopLiveRecord)
		r.POST("/record-file-callback", api.RecordFileCallBack)
	}
}
